package com.jason.bookworm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jason.bookworm.dao.pojo.Feedback;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface FeedbackService extends IService<Feedback> {

    //获取所有反馈
    List<Feedback> getAllFeedback();

    //获取该用户的所有反馈
    List<Feedback> getAllFeedback(String username);

    //获取某条反馈
    Feedback getOneFeedback(String feedbackId);

    //答复某条反馈(要把status置为1表示完成)
    void answerOneFeedback(Feedback feedback);

    //删除某条反馈(status置为2表示删除)
    void deleteOneFeedback(Feedback feedback);
}
